package com.example.demo.Server.impl;

import com.example.demo.Server.LoginServer;
import com.example.demo.entity.User;

import com.example.demo.mapper.Login_Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class Server_Impl implements LoginServer {


    @Autowired
    private Login_Mapper Login_Mapper;
    @Override
    public User login(User user) {

        return Login_Mapper.getUser(user);
    }

    @Override
    public int register(User user) {
        return Login_Mapper.register(user);
    }

    @Override
    public int updata(User user) {
        return Login_Mapper.updata(user);
    }
}
